package com.weiyuwqj.server.service.notice.impl;

import com.weiyuwqj.api.constant.Constants;
import com.weiyuwqj.server.service.notice.SMSNotice;
import com.weiyuwqj.api.util.IpUtils;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 投资短信
 * Created by lips on 2016/1/27.
 */
@Service
public class InvestSMSNoticeImpl  implements SMSNotice {

    @Override
    public void sendSMSMessage(String username , String content , String title , String money) {

        String response = "";
            //发短信
            Map smsMap = new HashMap();
            smsMap.put("securityCode", Constants.SAFETY_CODE);
            smsMap.put("platformId", Constants.platform_id);
            smsMap.put("content",content);
            smsMap.put("mobile",username);
            smsMap.put("date",new Date());
            smsMap.put("ip", IpUtils.get());
            smsMap.put("type",0);
            //response = HttpUtils.AbsoluteURLPost(Constants.COMMON_SERVER_PATH + "/yunfucloud/sms", smsMap, "utf-8");
    }

    @Override
    public void sendEmailMessage(Map map) {

    }

    @Override
    public void sendSiteMessage(Map map) {

    }
}
